package com.gidgabs.modules.api.service;

import com.gidgabs.common.utils.ReturnJson;
import com.gidgabs.dto.TbProductCommentDto;
import com.gidgabs.modules.entity.TbProductCommentEntity;
import com.gidgabs.modules.entity.TbUser;

import java.util.List;
import java.util.Map;

/**
 * 产品关系表-评论表
 * 
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-06-29 17:16:10
 */
public interface TbProductCommentService {
	
	TbProductCommentEntity queryObject(Integer id);
	
	List<TbProductCommentEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(TbProductCommentEntity productComment);
	
	void update(TbProductCommentEntity productComment);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	int queryCount(TbProductCommentEntity tbProductCommentEntity);

	/**
	 * 分页查询 根据创建时间排序
	 * @param pageSize
	 * @param pageNo
	 * @return
	 */
	ReturnJson<TbProductCommentDto> queryListBy(Integer pageSize, Integer pageNo, Integer productId, TbUser tbUser);
}
